package com.example.friendcash.database.dao.implementation.sqlite.android;

import android.content.Context;
import com.example.friendcash.database.dao.interfaces.*;

public final class SQLiteDaoFactory extends AbstractDaoFactory implements IDaoFactory {

    private final Context context;
    private final String databaseName;

    public SQLiteDaoFactory(Context context, String databaseName) {
        this.context = context;
        this.databaseName = databaseName;
    }

    @Override
    public IEventDao createEventDao() {
        return new EventDao(context, databaseName, this);
    }

    @Override
    public IFriendDao createFriendDao() {
        return new FriendDao(context, databaseName, this);
    }

    @Override
    public IPartDao createPartDao() {
        return new PartDao(context, databaseName, this);
    }

    @Override
    public IPaymentDao createPaymentDao() {
        return new PaymentDao(context, databaseName, this);
    }
}
